import request from '@/utils/request'

// 查询党建引领
export function listgroup(data) {
  return request({
    url: '/user/group/list',
    method: 'get',
    params:data
  })
}
// 查询党建引领
export function allListgroup() {
  return request({
    url: '/user/group/allList',
    method: 'get'
  })
}

// 查询详细
export function getgroup(pkId) {
  return request({
    url: '/user/group/info/' + pkId,
    method: 'get'
  })
}

// 新增志愿者队伍
export function addgroup(data) {
  return request({
    url: '/user/group/save',
    method: 'post',
    data: data
  })
}

// 修改志愿者队伍
export function updategroup(data) {
  return request({
    url: '/user/group/update',
    method: 'post',
    data: data,
    params: { id : data.id}
  })
}

// 删除志愿者队伍
export function delgroup(pkId) {
  console.log(pkId)
  return request({
    url: '/user/group/delete',
    method: 'get',
    params:pkId
  })
}


